﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmProveedor.aspx.cs" Inherits="SISLOG.Web.frmProveedor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
   
    Buscar
   
    <asp:TextBox ID="TextBox1" runat="server" Width="200px"></asp:TextBox>
   
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
   
    <asp:Button ID="botonBuscar" runat="server" Text="Buscar" />
   
    <br />
   
    <asp:ObjectDataSource ID="ObjectDataSourceProveedor" runat="server" 
        onselecting="ObjectDataSourceProveedor_Selecting" 
        SelectMethod="GetAllFromProveedorByCriterio" 
        TypeName="SISLOG.BusinessLogic.ProveedorBL" 
        onobjectcreating="ObjectDataSourceProveedor_ObjectCreating">
        <SelectParameters>
            <asp:ControlParameter ControlID="TextBox1" DefaultValue="%" Name="criterio" 
                PropertyName="Text" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="ObjectDataSourceProveedor">
        <Columns>
            <asp:BoundField DataField="idProveedor" HeaderText="idProveedor" 
                SortExpression="idProveedor" />
            <asp:BoundField DataField="nombreEmpresa" HeaderText="nombreEmpresa" 
                SortExpression="nombreEmpresa" />
            <asp:BoundField DataField="ruc" HeaderText="ruc" SortExpression="ruc" />
            <asp:BoundField DataField="direccion" HeaderText="direccion" 
                SortExpression="direccion" />
            <asp:BoundField DataField="telefono" HeaderText="telefono" 
                SortExpression="telefono" />
            <asp:BoundField DataField="email" HeaderText="email" SortExpression="email" />
            <asp:BoundField DataField="representante" HeaderText="representante" 
                SortExpression="representante" />
        </Columns>
    </asp:GridView>
</asp:Content>
